import request from '@/utils/request'

// 查询样本类型列表
export function sampleType(query) {
  return request({
    url: '/dict/sampleType/list',
    method: 'get',
    params: query
  })
}

// 查询样本类型单条详情
export function sampleTypeEdit(params) {
  return request({
    url: '/dict/sampleType/'+params,
    method: 'get',
  })
}

// 修改样本类型信息
export function sampleTypeUpdate(data) {
  return request({
    url: '/dict/sampleType',
    method: 'put',
    data: data
  })
}

// 获取lrp数据
export function lrpSampleList(params) {
  return request({
    url: '/dict/sampleType/lrpSampletList',
    method: 'get',
    params
  })
}

// 新增样本类型
export function sampleBatchComparison(data) {
  return request({
    url: '/dict/sampleType/sampleBatchComparison',
    method: 'post',
    data: data
  })
}

// 导出样本类型
export function sampleTypeExport(params) {
  return request({
    url: '/dict/sampleType/export',
    method: 'get',
  })
}

// 删除样本类型
export function sampleTypeDel(id) {
  return request({
    url: '/dict/sampleType/' + id,
    method: 'delete'
  })
}